package com.ruoyi.landlord.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.landlord.mapper.HumanLandlordMapper;
import com.ruoyi.landlord.domain.HumanLandlord;
import com.ruoyi.landlord.service.IHumanLandlordService;

/**
 * 房东管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-14
 */
@Service
public class HumanLandlordServiceImpl implements IHumanLandlordService 
{
    @Autowired
    private HumanLandlordMapper humanLandlordMapper;

    /**
     * 查询房东管理
     * 
     * @param landlordId 房东管理主键
     * @return 房东管理
     */
    @Override
    public HumanLandlord selectHumanLandlordByLandlordId(Long landlordId)
    {
        return humanLandlordMapper.selectHumanLandlordByLandlordId(landlordId);
    }

    /**
     * 查询房东管理列表
     * 
     * @param humanLandlord 房东管理
     * @return 房东管理
     */
    @Override
    public List<HumanLandlord> selectHumanLandlordList(HumanLandlord humanLandlord)
    {
        return humanLandlordMapper.selectHumanLandlordList(humanLandlord);
    }

    /**
     * 新增房东管理
     * 
     * @param humanLandlord 房东管理
     * @return 结果
     */
    @Override
    public int insertHumanLandlord(HumanLandlord humanLandlord)
    {
        return humanLandlordMapper.insertHumanLandlord(humanLandlord);
    }

    /**
     * 修改房东管理
     * 
     * @param humanLandlord 房东管理
     * @return 结果
     */
    @Override
    public int updateHumanLandlord(HumanLandlord humanLandlord)
    {
        return humanLandlordMapper.updateHumanLandlord(humanLandlord);
    }

    /**
     * 批量删除房东管理
     * 
     * @param landlordIds 需要删除的房东管理主键
     * @return 结果
     */
    @Override
    public int deleteHumanLandlordByLandlordIds(Long[] landlordIds)
    {
        return humanLandlordMapper.deleteHumanLandlordByLandlordIds(landlordIds);
    }

    /**
     * 删除房东管理信息
     * 
     * @param landlordId 房东管理主键
     * @return 结果
     */
    @Override
    public int deleteHumanLandlordByLandlordId(Long landlordId)
    {
        return humanLandlordMapper.deleteHumanLandlordByLandlordId(landlordId);
    }
}
